<?php
/**
 * @version		$Id: default.php 20196 2011-01-09 02:40:25Z ian $
 * @package		Joomla.Site
 * @subpackage	mod_articles_latest
 * @copyright	Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>
<div id="banner">
<div id="slider2">
<?php foreach ($list as $item) :  ?>
                               		<div class="contentdiv">
                                    	<a href="#"><img src="<?php echo JURI::base(); ?>/templates/tpmsolutions/images/banner.jpg" alt="" /></a>
                                        <div class="banner_des">
                                        	<h4 ><a style="color:#FFFFFF" href="<?php echo $item->link; ?>"><?php echo $item->title; ?></a></h4>
                                        	<?php						
															$words = explode(" ",strip_tags($item->introtext . $item->fulltext));
															if(count($words) > 34)
															{
																for($i=0;$i<=34;$i++)
																{
																	echo $words[$i]." ";
																}
																echo "...";
															}
															else
															{
																echo strip_tags($item->introtext . $item->fulltext));
															}
															?>
                                        </div>
									</div>
<?php endforeach; ?>
</div></div>
<div id="paginate-slider2" class="pagination">
									</div>
                       			<script type="text/javascript" src="<?php echo JURI::base(); ?>/templates/tpmsolutions/js/slider.js" ></script>
								
								
								
								
								
								
								
								